<div class="col-md-12">
	<div class="box margin-middle max-width">
		<!-- BOX-BODY -->
		<div class="box-body">
			{{#bs-form formLayout=formLayout model=workModel invalid=(action "invalid")}}
			<div class="row">
				<div class="col-xs-12">
					<p class="user-add-btn">
						{{#if detailEdit}}
							{{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-save"  text='保存' clickParams=worktimesettingInfo clickAction="saveWork" saveWork="saveWork"}}
							{{/ui/mix-button}}
							{{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo"  text='取消'  clickAction="detailCancel" detailCancel="detailCancel" }}
							{{/ui/mix-button}}
						{{else}}
							{{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-edit"  text='编辑'  clickAction="detailEditClick" detailEditClick="detailEditClick"}}
			        {{/ui/mix-button}}
							{{#ui/mix-button class="user-btn trash-btn" iconClass="fa fa-trash-o"  text='删除'  clickAction="delById" delById="delById" clickActParams=worktimesettingInfo}}
			        {{/ui/mix-button}}
						{{/if}}
					</p>
				</div>
				<!-- 列表详细介绍 -->
				<div class="col-xs-12">
					<div class="col-xs-12 nopadding-horizontal mt20">
            <div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">班次名称：</span>
								{{#if detailEdit}}
									{{#if id}}
										{{bs-form-element property="name" class="inline-block form-input-group label-normal" placeholder='班次名称(必填)'}}
								{{else}}
									{{bs-form-element property="name" class="inline-block form-input-group label-normal" placeholder='班次名称'}}
										{{/if}}
									{{else}}
									<div class="input-group-content">{{worktimesettingInfo.name}}</div>
								{{/if}}
							</div>

						</div>

						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">备注：</span>
								{{#if detailEdit}}
									{{#if id}}
									{{bs-form-element property="remark" class="inline-block form-input-group label-normal" controlType="remark" placeholder='备注'}}
									{{else}}
									{{bs-form-element property="remark" class="inline-block form-input-group label-normal" controlType="remark" placeholder='备注'}}
									{{/if}}
								{{else}}
									<div class="input-group-content">{{worktimesettingInfo.remark}}</div>
								{{/if}}
							</div>

						</div>

						<!-- <div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">开始时间：</span>
								{{#if detailEdit}}
									{{input type="date" class="input-group-content" value=workModel.callTimeString required="true"}}
									{{bootstrap-datepicker placeholder="点击显示日历" class="input-group-content"
			              format="yyyy-mm-dd" language="zh-CN" value=workgModel
			              show="dpShowAction" changeDate="changeCallTimeAction" id="warningDate"}}
										{{ui/addon/bs-datetimepicker date=workModel.startTimeDate placeholder="开始时间"
											locale="zh-CN" iconClasses="fa fa-calendar"
											value=workModel.startTimeDate show="dpShowAction" change="changeStartTimeAction" }}
								{{else}}
									<div class="input-group-content">{{workModel.startTimeString}}</div>
								{{/if}}
								  <input type="date" class="input-group-content" placeholder=""/>
							</div>
						</div> -->

						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">开始时间：</span>
								{{#if detailEdit}}
									{{#if id}}
										{{bs-form-element property="startTime" class="inline-block form-input-group label-normal"  placeholder='格式例如8或8:30(必填)'}}
									{{else}}
										{{bs-form-element property="startTime" class="inline-block form-input-group label-normal" placeholder='格式例如8或8:30(必填)'}}
									{{/if}}
								{{else}}
									<div class="input-group-content">{{worktimesettingInfo.startTime}}</div>
								{{/if}}
							</div>

						</div>

						<!-- <div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">结束时间：</span>
								{{#if detailEdit}}
									{{input type="date" class="input-group-content" value=workModel.callTimeString required="true"}}
									{{bootstrap-datepicker placeholder="点击显示日历" class="input-group-content"
			              format="yyyy-mm-dd" language="zh-CN" value=workgModel
			              show="dpShowAction" changeDate="changeCallTimeAction" id="warningDate"}}
										{{ui/addon/bs-datetimepicker date=workModel.endTimeDate placeholder="结束时间"
											locale="zh-CN" iconClasses="fa fa-calendar"
											value=workModel.endTimeDate show="dpShowAction" change="changeEndTimeAction" }}
								{{else}}
									<div class="input-group-content">{{worktimesettingInfo.endTime}}</div>
								{{/if}}
								  <input type="date" class="input-group-content" placeholder=""/>
							</div>
						</div> -->

						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">结束时间：</span>
								{{#if detailEdit}}
									{{#if id}}
										{{bs-form-element property="endTime" class="inline-block form-input-group label-normal"  placeholder='格式例如18或18:30(必填)'}}
									{{else}}
										{{bs-form-element property="endTime" class="inline-block form-input-group label-normal" placeholder='格式例如18或18:30(必填)'}}
									{{/if}}
								{{else}}
									<div class="input-group-content">{{worktimesettingInfo.endTime}}</div>
								{{/if}}
							</div>

						</div>

					</div>
				</div>
				<!-- 列表详细介绍 -->
			</div>
			{{/bs-form}}
		</div>
		<!-- /BOX-BODY -->
	</div>
</div>

<!-- {{#if showpopInvitePassModal}}
{{#bs-modal body=false footer=false header=false submitAction=(action "invitation")
closedAction=(action "cancelPassSubmit" worktimesettingInfo)}}
{{#bs-modal-body}}
<h4 class="modal-title">是否删除</h4>
{{/bs-modal-body}}
{{bs-modal-footer closeTitle="确定" submitTitle="取消"}}
{{/bs-modal}}
{{/if}} -->

{{#if showpopInvitePassModal}}
	{{#bs-modal body=false footer=false header=false closedAction=(action "invitation")
	submitAction=(action "cancelPassSubmit" worktimesettingInfo)}}
		{{#bs-modal-header}}
			<h3 class="modal-title">删除提示</h3>
		{{/bs-modal-header}}
		{{#bs-modal-body}}
			<h4 class="modal-title">是否删除该条记录？</h4>
		{{/bs-modal-body}}
		{{#bs-modal-footer as |worktimesetting|}}
			{{#bs-button action=(action "cancelPassSubmit" worktimesettingInfo) type="primary" disabled=prepaidDisabled}}确定{{/bs-button}}
			{{#bs-button action=(action "invitation") type="default"}}取消{{/bs-button}}
		{{/bs-modal-footer}}
	{{/bs-modal}}
{{/if}}
